/* 
 * File:   drv_tmr.h
 * Author: Omar Sevilla
 *
 * Created on 4 de diciembre de 2013, 02:18 AM
 */

#ifndef DRV_TMR_H
#define	DRV_TMR_H

#ifdef	__cplusplus
extern "C" {
#endif
#include "system.h"
#include "stdtypedef.h"

#define T1CON_CLEAR     (0)
#define MOD_16          (1 << 7)
#define PREESCALER(x)   (T_UBYTE)(x << 4)
#define OSC_DISABLE     (0)
#define NOT_SYNC        (1)
#define INT_CLOCK       (0)
#define TMR1_ON         (1)

#define TMR1_ON         (T_UBYTE)(1 << 0)
#define TMR1_EXT_CLK    (T_UBYTE)(1 << 2)



void drv_tmr1_init(T_UWORD ruw_OverFlowTime);
#ifdef	__cplusplus
}
#endif

#endif	/* DRV_TMR_H */

